<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<% 
	String basePath = request.getScheme() + "://" +
					  request.getServerName() + ":" +
					  request.getServerPort() + 
					  request.getContextPath() + "/";

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath %>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>杰普信息管理系统</title>
<link rel="stylesheet" type="text/css" href="theme/1/css/common.css">
<link rel="stylesheet" type="text/css" href="theme/1/css/front/style.css">
</head>
<body>
<div id="main">
	<!-- 导入头部页面（logo, 导航） -->
   <jsp:include page="include/header.jsp"></jsp:include>
    <div class="content">
    	<div class="congw">
           <div class="conlist">
           		<div class="position">
                   	<span class="poshome">您现在的位置：</span>
                       <a href="jsp/to_index_Servlet">首页</a> >> 
                       <a href="jsp/toList_Servlet?id=${category.id }">
                       	${category.name }
                       </a>
                </div>
                <div class="search_result">
               		<c:forEach items="${articles }" var="a">
                    	 <div class="art_box">
                        	<div class="art_img">
                        		<a href="jsp/toContent_Servlet?id=${a.id }">
                        			<img src="theme/1/images/front/doc.png">
                        		</a>
                        	</div>
                            <div class="art_txt">
                            	<div class="title">${a.title}<span class="icon_pen"></span></div>
                                <div class="tag_txt"><span>栏目名称：${category.name }</span>
                                <span class="pl30">点击数：${a.clicktimes }</span>
                             	</div>
                                <div class="tag_txt">
                                	<span>作者：${a.author }</span>
                                	<span class="pl30">发表日期:<fmt:formatDate value="${a.publisurdate }" pattern="yy/MM/dd H:m" /></span>
                                </div>
                            </div>
                        </div>
                    </c:forEach> 
                    <div class="page">分页</div>
                </div>
           </div>
            <div class="link">
            	<div class="linelink">
            		<span>友情链接：</span>
            		<c:forEach var="link" items="${sessionScope.links}">
                		<a name="link_a" href="javascript:void(0)" title="${link.url}"  url="${link.url}">${link.name}</a>
                	</c:forEach>
                </div>
            </div>
        </div>
    </div>
    <jsp:include page="include/footer.jsp"></jsp:include>
    
</div>
</body>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("a[name='link_a']").on("click",function(){
			window.open('http:///'+$(this).attr('url'));
		}) ;
		return false ;
	}) ;
</script>
</html>